clear all
set more off

local path0="C:\Dropbox\GeneticsProject (1)\REStat\round_accepted_replication_files\"


*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
use "`path0'Data\Barro-religion\barro-religion.dta", clear

foreach var in cath prot othchrist orth jews muslim hindu buddis easrel othrel nonrel comm {
		foreach var1 in 70 00 1900 {
			capture rename  `var'`var1' barro_`var'_`var1'
		}
}
		
drop if countrycode==""

keep countrycode barro_*70
duplicates report countrycode


compress
save "`path0'Workfiles\barro-religion.dta", replace

